import { Detail } from "@/type/detailTypes"
import { ResponseType } from "@/type/response"
import request from "@/utils/request"

enum Enum {
  findGooDetailAPI = "/goods"
}
/**
 * @description 获取商品详情的接口
 */
export const findGooDetailAPI = (goodsId: number) => request.get<ResponseType<Detail>>(`${Enum.findGooDetailAPI}/${goodsId}`)